<%@page import="soen343.domain.MultipleChoiceQuestion"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<% 
MultipleChoiceQuestion q = (MultipleChoiceQuestion)request.getAttribute("question");
List<String> choices = q.getChoices();
int count = 0;
%>
<ol id="editChoiceList"><%
	for(String choice : choices) { %>
		<li><input type="text" name="choice_<%=count %>" value="<%=choice %>" />
			<input type="button" value="delete" class="deleteChoiceButton" />
		</li><%
	count++; 
	} %>
</ol>
<input type="button" id="addChoiceButton" value="Add Choice" />
<input type="hidden" name="command" value="UpdateMultipleChoice" />